#!usr/bin/env node

const Koa = require('koa');

const app = new Koa();

//中间件  middleware
//use:加载中间件
app.use((ctx,next)=>{
  ctx.body = 'hello world';//body是响应体
});

app.listen(3000);
console.log('hello')
